<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2018 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------

// 前端路由
Route::group('api', function () {
   Route::post('get-is-login','index/Api/isLogin'); // 是否登录
   Route::post('auth-login','index/Api/authLogin'); // 微信授权登录

   Route::post('upload_file','index/Api/uploadFile')->middleware('Web'); // 上传文件和图片
   Route::post('get-chat-gpt','index/Api/getChatGPT')->middleware('Web'); // 对话函数
   Route::post('get-gpt-log','index/Api/getGPTLog')->middleware('Web'); // 聊天记录


});




